@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  overflow: auto;
  background-color: #fff4e6;
}

/* Login/Cadastro Page */
.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  overflow: hidden;
  background-color: #ff7f2a;
}

/* Left Section - BOBI Background */
.left-section {
  background: linear-gradient(135deg, #ff7f2a 0%, #ff6b00 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.left-section::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><circle cx="30" cy="30" r="4"/></g></svg>') repeat;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.floating-text {
  position: absolute;
  font-size: 3rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  z-index: 2;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.text-1 { top: 15%; left: 20%; transform: rotate(-5deg); animation-delay: 0s; }
.text-2 { top: 35%; right: 15%; transform: rotate(3deg); animation-delay: 0.5s; }
.text-3 { bottom: 30%; left: 25%; transform: rotate(-2deg); animation-delay: 1s; }
.text-4 { bottom: 20%; right: 20%; transform: rotate(5deg); animation-delay: 1.5s; }

/* Right Section - Content */
.right-section {
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  position: relative;
}

.content-container {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

h2 {
  color: #333;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.subtitle {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1rem;
  text-align: center;
  line-height: 1.6;
}

.btn {
  display: block;
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00C853 0%, #00AA45 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00AA45 0%, #008A38 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,200,83,0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #FF6B00 0%, #E55C00 100%);
  color: white;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #E55C00 0%, #CC5200 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,107,0,0.3);
}

.btn-logout {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.btn-logout:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
}

.legal-links {
  margin-top: 2rem;
  text-align: center;
}

.legal-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0 10px;
  transition: color 0.3s;
}

.legal-links a:hover {
  color: #FF6B00;
}

.footer-links {
  margin-top: 20px;
  font-size: 0.9em;
  text-align: center;
}

.footer-links a {
  color: #FF6B00;
  text-decoration: none;
  display: block;
  margin: 5px 0;
}

/* User Dashboard */
.dashboard {
  display: none;
  min-height: 100vh;
}

.dashboard.active {
  display: block;
}

header {
  background: linear-gradient(135deg, #ff7f2a 0%, #ff6b00 100%);
  padding: 20px;
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.container {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.card h3 {
  margin-bottom: 15px;
  color: #ff7f2a;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
}

.wallet-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.bobi-balance {
  font-size: 1.1rem;
  color: #00C853;
  font-weight: 600;
}

.kz-equivalent {
  font-size: 1.1rem;
  color: #ff7f2a;
  font-weight: 600;
}

.profile-detail {
  margin-bottom: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
}

.profile-detail:last-child {
  border-bottom: none;
}

.dashboard-btn {
  background: linear-gradient(135deg, #00cc66 0%, #00994d 100%);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 10px 0;
  transition: all 0.3s ease;
}

.dashboard-btn:hover {
  background: linear-gradient(135deg, #00994d 0%, #007a3d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,204,102,0.3);
}

.input-calc {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.input-calc:focus {
  outline: none;
  border-color: #ff7f2a;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  margin: 2% auto;
  padding: 2rem;
  border-radius: 15px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  position: relative;
  color: #333;
}

.modal-content h2 {
  color: #FF6B00;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-content h3 {
  color: #00C853;
  margin: 1.5rem 0 1rem;
}

.modal-content p, .modal-content ul {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.modal-content ul {
  padding-left: 1.5rem;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #FF6B00;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

.close-btn:hover {
  background: #E55C00;
}

/* Form Styles */
.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: #ff7f2a;
}

.warning {
  color: #FF6B00;
  font-size: 0.9em;
  margin-top: 15px;
  font-weight: 500;
  padding: 10px;
  background: #fff3e0;
  border-radius: 8px;
  border-left: 4px solid #FF6B00;
}

/* Tasks Styles */
.tarefas-container {
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.tarefa-item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.tarefa-item:hover {
  transform: translateY(-2px);
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.tarefa-item h3 {
  color: #FF6B00;
  margin: 0;
  font-size: 1.2rem;
}

.task-reward {
  color: #00C853;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 10px 0;
}

.task-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.task-link:hover {
  text-decoration: underline;
}

.task-status {
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.task-status.pending {
  background: #fff3cd;
  color: #856404;
}

.task-status.approved {
  background: #d4edda;
  color: #155724;
}

.task-status.rejected {
  background: #f8d7da;
  color: #721c24;
}

.btn-completar {
  background: linear-gradient(135deg, #00C853 0%, #00AA45 100%);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-completar:hover {
  background: linear-gradient(135deg, #00AA45 0%, #008A38 100%);
  transform: translateY(-1px);
}

.btn-disabled {
  background: #ccc;
  color: #666;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: not-allowed;
  margin-top: 10px;
}

/* Saque Styles */
.saque-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #00C853;
}

.saque-form {
  margin-top: 20px;
}

/* Referral Styles */
.referral-info {
  text-align: center;
}

.referral-code-container, .referral-link-container {
  margin: 20px 0;
}

.code-copy {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.code-copy input {
  flex: 1;
}

.referral-stats {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

/* Notifications */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  max-width: 400px;
}

.notification {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.notification.success {
  border-left: 4px solid #00C853;
}

.notification.error {
  border-left: 4px solid #f44336;
}

.notification.warning {
  border-left: 4px solid #ff9800;
}

.notification.info {
  border-left: 4px solid #2196f3;
}

.notification-close {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  margin-left: auto;
}

/* Admin Styles */
.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #ff7f2a 0%, #ff6b00 100%);
}

.admin-login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.admin-login-card {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  text-align: center;
}

.admin-login-card h2 {
  color: #ff7f2a;
  margin-bottom: 10px;
}

.admin-login-card h3 {
  color: #666;
  margin-bottom: 30px;
  font-weight: 400;
}

.admin-credentials {
  margin-top: 20px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #666;
}

.admin-dashboard {
  display: none;
  min-height: 100vh;
  background: #f5f5f5;
}

.admin-header {
  background: linear-gradient(135deg, #ff7f2a 0%, #ff6b00 100%);
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-nav {
  background: white;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  overflow-x: auto;
}

.nav-btn {
  background: none;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  color: #666;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.nav-btn:hover, .nav-btn.active {
  color: #ff7f2a;
  border-bottom-color: #ff7f2a;
  background: #fff3e0;
}

.admin-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 20px;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  background: linear-gradient(135deg, #ff7f2a 0%, #ff6b00 100%);
}

.stat-info h3 {
  font-size: 2rem;
  margin: 0;
  color: #333;
}

.stat-info p {
  margin: 5px 0 0;
  color: #666;
  font-size: 0.9rem;
}

.section-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.search-input {
  flex: 1;
  max-width: 300px;
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
}

.table-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: #f8f9fa;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
}

.admin-table td {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.admin-table tr:hover {
  background: #f8f9fa;
}

.status {
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status.active, .status.approved {
  background: #d4edda;
  color: #155724;
}

.status.blocked, .status.rejected {
  background: #f8d7da;
  color: #721c24;
}

.status.pending {
  background: #fff3cd;
  color: #856404;
}

.btn-small {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 2px;
  font-size: 0.8rem;
}

.btn-info {
  background: #17a2b8;
  color: white;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-warning {
  background: #ffc107;
  color: #333;
}

.recent-activity {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.activity-list {
  max-height: 300px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item i {
  width: 30px;
  text-align: center;
  color: #ff7f2a;
}

.activity-item small {
  margin-left: auto;
  color: #999;
  font-size: 0.8rem;
}

.tasks-list {
  display: grid;
  gap: 20px;
}

.task-item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.task-info {
  flex: 1;
}

.task-info h4 {
  margin-bottom: 10px;
  color: #333;
}

.task-actions {
  display: flex;
  gap: 10px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.setting-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.setting-card h3 {
  margin-bottom: 15px;
  color: #333;
}

.setting-card input {
  width: 80px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 0 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .left-section {
    display: none;
  }

  .right-section {
    padding: 2rem;
  }

  .dashboard-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    max-width: none;
  }

  .admin-nav {
    padding: 0 10px;
  }

  .nav-btn {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .table-container {
    overflow-x: auto;
  }

  .modal-content {
    margin: 5% auto;
    width: 95%;
    padding: 1.5rem;
  }

  .floating-text {
    font-size: 2rem;
  }

  .wallet-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .floating-text {
    font-size: 1.5rem;
  }

  .card {
    padding: 15px;
  }

  .container {
    padding: 15px;
  }

  .admin-content {
    padding: 20px 15px;
  }

  .stat-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
  }

  .code-copy {
    flex-direction: column;
  }
}
